package com.ece.ecofitness.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ece.ecofitness.dao.CommandeDao;
import com.ece.ecofitness.model.Commande;

@Service
public class CommandeServiceImp implements CommandeService{


	@Autowired
	private CommandeDao commandeDao;


	public List<Commande> getAllCommande() {
		return commandeDao.getAllCommande();
	}

	public Commande updateCommande(int idCommande, Date dateLivraison,
			Date dateReception) {
		return commandeDao.updateCommande(idCommande, dateLivraison, dateReception);

	}

	public Commande getCommande(int idCommande) {
		return commandeDao.getCommande(idCommande);
	}
	
}
